#pragma once
#include <vector>
#include <SFML\Graphics.hpp>
#include "Barrel.h"
#include "Player.h"
class TerrainManager {
public:
	TerrainManager();
	~TerrainManager();

	void Initialize(sf::RenderWindow* win);
	void Update(Player* player);
	void Cleanup();
	void Reset();
	std::vector<Barrel*> m_arrayOfTerrain;

	unsigned int terrainCount;

	int m_pos;

private:
	float				m_deltaTime;
	float				m_timer;
	float				m_spawnTimer;
	float				m_spawnTime;
	sf::Clock*			m_clock;
	sf::RenderWindow* m_renderWindow;
	sf::Texture*		m_brlTexture;
	sf::Texture*		m_stoneTexture;
	sf::Texture*		m_mineTexture;
	sf::Texture*		m_splashTexture;
	sf::Texture*		m_bloodTexture;

};
